<?php

define('DOMROOT',dirname(__FILE__));

require_once DOMROOT.'/orm/classes/SchemaLoader.class.php';
require_once DOMROOT.'/orm/classes/SQL.class.php';
require_once DOMROOT.'/orm/classes/DBDependencyContainer.class.php';

require_once DOMROOT.'/classes/APICore/EventLogger.php';

$event_logger = new EventLogger("Test",'/log/adapter.log');
$event_logger ->logEvent("Test run");

//$db_container = new DBDependencyContainer();
//$db_container->schemaSync();

//echo $db_container->getAdapterException();

//echo "<br/>";

//echo $db_container->getSQLErrors();
/*

$schema = new SchemaLoader();
$entity = $schema->getEntity("_user_login_details");
$sql = new SQL($entity);
$sql->alterTable();
$db_container = new DBDependencyContainer();
$adapter = $db_container ->getAdapter();
$adapter->alterTable($sql);

echo $sql->getSQLQuery()."<br/>";
print_r($adapter->getSQLError());
print_r($adapter->getAdapterException());*/

?>
